import request from '@/utils/axios'
var qs = require('qs');

// 获取礼包管理列表
export function getGiftList(params) {
  return request({
    url: '/gameGift/List',
    method: 'get',
    params
  });
}
// 添加礼包
export function addGift(params) {
  return request({
    url: '/gameGift/insert',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 编辑列表显示
export function editGiftList(params) {
  return request({
    url: '/gameGift/edit',
    method: 'get',
    params
  });
}

// 编辑礼包
export function editGift(params) {
  return request({
    url: '/gameGift/editPost',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 删除礼包
export function delGift(params) {
  return request({
    url: '/gameGift/delGift',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 转游礼包列表
export function transferGiftList(params) {
  return request({
    url: 'transferGame/giftList',
    method: 'get',
    params
  });
}
// 转游礼包补仓
export function transferEditPost(params) {
  return request({
    url: 'transferGame/editPost',
    method: 'post',
    data: qs.stringify(params)
  });
}